package com.mlog.njyjy.ndop.msg.common.domain;

import com.jfinal.plugin.activerecord.Model;
import com.mlog.njyjy.ndop.msg.common.domain.core.Timeable;
import com.mlog.njyjy.ndop.msg.common.support.Constants;
import com.mlog.njyjy.ndop.share.sql.annotation.Column;
import com.mlog.njyjy.ndop.share.sql.annotation.Id;
import com.mlog.njyjy.ndop.share.sql.annotation.Table;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 统计表
 * </p>
 *
 * @author zyz
 * @version v1.0, 2020/8/6
 */
@Data
@Accessors(chain = true)
@Table(prefix = Constants.TBL_MSG_PREFIX, comment = "统计详细信息")
public class ItemStats extends Model<ItemStats> implements Timeable {
    @Id
    private int id;

    @Column(nullable = false, length = 255, comment = "错误消息统计")
    private int statsErrorMsg;

    @Column(nullable = false, length = 255, comment = "成功消息统计")
    private int statsSuccessMsg;

//    @Column(nullable = false, length = 255, comment = "消息类型统计")
//    private int statsMsgByType;
//
//    @Column(nullable = false, length = 255, comment = "消息PID统计")
//    private int statsMsgByPID;
//
//    @Column(nullable = false, length = 255, comment = "指定错误类型的消息统计")
//    private int statsErrorMsgByErrType;

    @Column(nullable = false, length = 255, comment = "验证失败统计")
    private int statsFailMsg;

    @Column(nullable = false, length = 255, comment = "全部消息统计")
    private int statsAllMsg;

    private String time;

    @Column(updatable = false)
    private LocalDateTime createAt;

    private LocalDateTime updateAt;
}
